i=input()
sum=1
for j in range(1,int(i)+1):
    sum=sum*j
print(sum)